package com.jml.hystrix.service;


import com.alibaba.fastjson.JSONObject;
import com.jml.hystrix.utils.HttpClientUtils;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
public class MemberService {


	public JSONObject getdata() {
			JSONObject result = HttpClientUtils.httpGet("http://127.0.0.1:8081/member/memberIndex");
			return result;
	}


	/*@RequestMapping("/memberIndex")
	public Object memberIndex() throws InterruptedException {
		Map<String, Object> hashMap = new HashMap<String, Object>();
		hashMap.put("code", 200);
		hashMap.put("msg", "memberIndex");
		Thread.sleep(1500);
		return hashMap;
	}*/
}
